#include "pintaros.h"
#include "transmission.h"

int transInit(struct t_config_struct config)
{

}

void transRx()
{
  rx_buffer.buffer[rx_buffer.length] = HAL_IO_RxByte();
  rx_buffer.length++;
}

void transTx()
{
  int cnt = 0;
  while(cnt < tx_buffer.length) {
    HAL_IO_TxByte(tx_buffer.buffer[cnt++]);
  }
}
